<?php get_header(); ?>

	<div id="content">

		<?php if (have_posts()) : ?>
    
            <h3 class="head">Search Results</h3>
            <div class="clearer"></div>
    
            <div id="entries" class="arch">
                <div id="entries2">
                    <?php while (have_posts()) : the_post(); ?>
            
                    <!-- start entry post -->
                    <div class="post" id="post-<?php the_ID(); ?>">
                        <div class="etext">                                                                    
                            <div class="entryinfo">
                              <span class="comm"><?php comments_popup_link('0 Comments', '1 Comment', '% Comments'); ?></span> <span class="date"><?php the_time('F jS, Y') ?></span> | <span class="cat"><?php the_category(', ') ?></span> <?php edit_post_link('Edit', '| <span class="edit">', ' </span>'); ?>
                              <div class="clearer"></div> 
                            </div>
                            <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
                            <?php  if((get_post_meta($post->ID, "image", true))) { ?>
                            <a href="<?php the_permalink() ?>" rel="bookmark" title="Continue reading <?php the_title(); ?>"><img class="epic" src="<?php bloginfo('template_directory'); ?>/scripts/timthumb.php?src=<?php echo get_post_meta($post->ID, "image", true); ?>&h=125&w=140&zc=1&cropfrom=topleft" alt="Continue reading <?php the_title(); ?>" /></a>
                            <?php } ?> 
                            <div class="excerpt"><?php the_excerpt(); ?></div>
                        </div>
                    </div>
                     <!-- end entry post -->	
                     
                    <?php endwhile; ?>
                </div>
            </div>
    
            <div class="navigation mar">
                <div class="alignleft"><?php next_posts_link('&larr; Older Entries') ?></div>
                <div class="alignright"><?php previous_posts_link('Newer Entries &rarr;') ?></div>
            </div>
    
        <?php else : ?>
    

            <div class="post">
                <div class="entry">
                	<h2>No Results Found</h2>
                    Please try a different search.
                </div>
            </div>
    
        <?php endif; ?>
	</div>

<?php get_sidebar(); ?>

<?php get_footer(); ?>